package com.scs.application.modules.orth.controller;

import com.scs.application.modules.orth.dto.CheckDto;
import com.scs.application.modules.sys.model.RestResult;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.scs.application.core.mvc.controller.CrudController;
import com.scs.application.modules.orth.service.CheckService;
import com.scs.application.modules.orth.entity.Check;

import javax.validation.Valid;
import java.util.List;

/**
 * <p>
 * 骨科验收平台出库清点表 前端控制器
 * </p>
 */
@RestController
@RequestMapping("/orth/check")
public class CheckController extends CrudController<CheckService, Check> {
    /**
     * 出库清点接口
     *
     * @param checkDtoList
     * @return
     */
    @RequestMapping(value = "/orth_wo_notify", method = RequestMethod.POST)
    public RestResult orthWoNotify(@RequestBody @Valid List<CheckDto> checkDtoList) {
        return service.createCheckByOrthScan(checkDtoList);
    }
}
